package com.ddpyjqtd;

import java.lang.reflect.InvocationTargetException;

import com.ddpyjqtd.reflect.SqlConverter;
import com.ddpyjqtd.user.User;

public class ReflectTest {

	public static void main(String[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
		User user = new User();
		user.setUid(1);
		user.setPassWord("1008611");
		user.setUserCode("admin");
		user.setUserName("我是用户名称");
		user.setSex(1);
		System.out.println("对象为：" + user);
		SqlConverter<User> sqlConverter = new SqlConverter<User>();
		String sql = sqlConverter.getInsertSQL(user);
		System.out.println("转换成sql为：" + sql);
	}

}
